﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MiniPac.Components
{
	public enum GState
	{
		Paused,
		New,
		Playing,
		End

	}
	public static class State
	{
		public static GState gameState;

		public static int pnts;
		public static int lives;
		public static bool scaredGhosts;

		public static int scaredTimer;
		public static bool setTimer = false;

		public static void tick()
		{
			if (!setTimer && scaredGhosts)
			{
				scaredTimer = 500;
				setTimer = true;
			}
			if (setTimer && --scaredTimer == 0)
			{
				scaredGhosts = false;
				setTimer = false;
			}
		}
	}
}
